package com.gitee.swsk33.providerdemo.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.gitee.swsk33.providerdemo.service.NameService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class NameServiceImpl implements NameService {

	@Value("${spring.application.name}")
	private String value;

	@SentinelResource("get-name")
	@Override
	public String getName() {
		return value;
	}

}